/*
 * @Author: szx
 * @Date: 2021-12-01 12:59:34
 * @LastEditTime: 2021-12-01 13:02:17
 * @Description:
 * @FilePath: \leetcode\300-399\344\344.js
 */
/**
 * @param {character[]} s
 * @return {void} Do not return anything, modify s in-place instead.
 */
var reverseString = function (s) {
    let l = 0,
        r = s.length - 1;
    while (l < r) {
        let tmp = s[l];
        s[l] = s[r];
        s[r] = tmp;
        l++;
        r--;
    }
};
// var reverseString = function(s) {
//     s.reverse();
// };
